-- GENERATED SPELL FOR [Twilight Geolord] --


function spell0_11881(pUnit, Event) --@Boulder,n/a--
pUnit:FullCastSpellOnTarget(9483,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11881', 2000, 1)
end

function spell1_11881(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(13728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11881', 2333, 1)
end

function Sorts_11881(pUnit, Event)
local choix_sorts_11881 = math.random(0, 1)
if choix_sorts_11881 == 0 then
pUnit:RegisterEvent('spell0_11881', 1, 1)
end
if choix_sorts_11881 == 1 then
pUnit:RegisterEvent('spell1_11881', 1, 1)
end
end

function mob11881_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11881', math.random(1500, 3000), 1)
end

function mob11881_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11881_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11881_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11881, 1, 'mob11881_Action')
RegisterUnitEvent(11881, 2, 'mob11881_Leave')
RegisterUnitEvent(11881, 3, 'mob11881_Kill')
RegisterUnitEvent(11881, 4, 'mob11881_Die')
